package com.qtu.order_service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qtu.entity.BmInordergoodslist;
import com.qtu.order_service.entity.Details;
import com.qtu.order_service.mapper.BmInordergoodslistMapper;
import com.qtu.order_service.service.BmInordergoodslistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BmInordergoodslistServiceImpl extends ServiceImpl<BmInordergoodslistMapper,BmInordergoodslist> implements BmInordergoodslistService {
    @Autowired
    private BmInordergoodslistMapper bmInordergoodslistMapper;

    /**
     * 查询订单商品详情
     * @param
     * @return
     */
    @Override
    public List<Details> getGoodsDetails(Integer orderId) {
        return bmInordergoodslistMapper.getGoodsDetails(orderId);
    }
    /**
     * 查询订单商品
     * @param
     * @return
     */
    @Override
    public List<BmInordergoodslist> getGoods(Integer sellerId) {
         return bmInordergoodslistMapper.getGoods(sellerId);
    }


}
